using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Noebe.Orm;

namespace Pixysoft.Framework.Security.Entity
{
    public interface Permission
    {
        [OrmPrimaryKey]
        string PermissionName { get;set;}

        string Description { get;set;}

        int LayerIndex { get;set;}

        Permission Parent { get;set;}

        List<Permission> Children { get;set;}

        List<string> ResList { get;set;}

        int Operation { get;set;}


        void AddToResList(params string[] values);
        void RemoveFromResList(params string[] values);

    }
}
